<include file="__THEME__/header" />
<link rel="stylesheet" href="../Public/blog.css" type="text/css" media="screen" charset="utf-8" />
<script type="text/javascript" src="../Public/Js/Common.js"></script>

<script type="text/javascript" charset="utf-8">
        function isHot( uid,id,action ){
                obj = $( "#re"+id );
                obj2 = $( '#rec'+id );
                $.post( APP+"Index/recommend",{id:id,act:action,uid:uid},function( result ){
                        if( result != -1 ){
                                if( action == 'recommend' ){
                                        obj.html( "已推荐" );
                                        obj2.html( parseInt( obj2.html() )+1 );
                                }else{
                                        obj.html( "推荐" );
                                        obj.attr( "href","javascript:isHot("+uid+","+id+",'recommend' )" );
                                        obj2.html( parseInt( obj2.html() )-1 );
                                }
                        }
                });
        }
</script>
<div class="content"><!-- 内容 begin  -->
        <include file="__THEME__/apps" />
        <div class="main"><!-- 画布 begin  -->
                <div class="page_title"> <!-- page_title begin -->
                        <div class="left" style="width:66px;"><span class="headpic50"><a href="__TS__/space/{$uid}"><img src="{$uid|getUserFace}" /></a></span></div>
                        <div class="left" style="width:765px;">
                                <h2><span  class="right fn f12px"><a href="javascript:history.back( -1 )">返回上一页</a></span>{$name}的{%blog}</h2>
                                <p><a href="__TS__/space/{$uid}">{$name}的{%space}</a>&nbsp;&nbsp;<span class="cGray2">|</span>&nbsp;&nbsp;<a href="__TS__/Notify/write/uid/{$uid}">{%msg}</a></p>
                        </div>
                        <div class="c"></div>
                </div><!-- page_title end -->
                <div class="BlogBox">
                        <div class="sidebar">
                                <div class="border bg02">
                                        <h4 class="lh30 f12px" style="padding:0px 8px;"><strong>更多{$name}的{%blog}</strong></h4>
                                        <volist name="bloglist" id="vo">
                                                <p class="btmlineD lh18"><a href="__URL__/show/id/{$vo['id']}/mid/{$uid}" title="{$vo['title']}">{$vo['title']}</a></p>
                                        </volist>
                                        <p class="alR" style="margin-right:5px;"><a href="__URL__/personal/uid/{$uid}">{%moreOne}&gt;&gt;</a></p>
                                </div>
                        </div>
                        <div class="LogList"><!-- 好友{%blog} begin  -->
                                <div class="btmline lh30"><div class="right"><a href="__URL__/show/id/{$id}/action/lt/mid/{$uid}">上一篇</a> / <a href="__URL__/show/id/{$id}/action/gt/mid/{$uid}">下一篇</a></div>
                                        第 {$num}/{$count} 篇{%blog} | <a href="__URL__/personal/uid/{$uid}" >返回{$name}的{%blog} </a></div>
                                <div style="margin-bottom:20px;">
                                        <div class="tit_log">
                                        <h1><span class="right"><php>if(isAddApp('share')) { </php>
                                                        <input type="button" name="Submit" value="{%share}" class="BtnShare" onclick="ts_sharePop('{$id}','__URL__')" id="BtnShare_{$id}"/>
                                                <php> } </php></span><strong>{$title}</strong></h1>
                                        <p><!--<a href="__TS__/space/{$uid}">{$name}</a>--> <span class="cGray2">{$cTime|friendlyDate}</span></p>
                                        </div>

                                        <php>if( $private == 2 ){</php>
                                        <div class="bg_msg"><div class="bg_msg_btm"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr>
                                                                        <td width="40" align="center"><img src="../Public/images/ico_suo.png" width="20" height="20" /></td>
                                                                        <td>只有主人可以查看此日志</td>
                                                                </tr>
                                                        </table></div></div>
                                        <php>}elseif($private == 3){</php>
                                        <div class="bg_msg">
                                                <div class="bg_msg_btm"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td width="40" align="center"><img src="../Public/images/ico_yaoshi.png" width="20" height="20" /></td>
                                                                        <td colspan="3">本日志需要密码才能访问</td>
                                                                </tr>
                                                                <form method="post" action=""><tr>
                                                                                <td height="50" align="center">&nbsp;</td>
                                                                                <td width="37">密码:</td>
                                                                                <td width="140"><input name="password" type="password" class="TextH20" id="title" onfocus="this.className='Text2'" onblur="this.className='TextH20'" size="20" maxlength="30"/>
                                                                                </td>
                                                                                <td width="71"><input type="submit" value="提交" class="btn_b"/></td>
                                                                        </tr>
                                                                </form>
                                                        </table>
                                                </div></div>
                                        <php>}elseif( $private == 1 && false == $isFriend){</php>
                                        <div class="bg_msg"><div class="bg_msg_btm"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr>
                                                                        <td width="40" align="center"><img src="../Public/images/ico_suo.png" width="20" height="20" /></td>
                                                                        <td>只有主人的好友可以查看此日志</td>
                                                                </tr>
                                                        </table></div></div>
                                        <php>}else{</php>

                                        <php>if( $type != 0 ){</php><span class="imported-article cGray2">{%type1}<php>}</php></span>
                                        <div style="padding:20px 0px;" class="f14px blog_con lh180" id="blog_con">{$content}</div>
                                        <neq name="mention" value="">
                                                <div class="cGray2 lh30">{%blog}相关好友:
                                                        <php>foreach( $mention as $friends ){</php>
                                                        <a href="__TS__/space/{$friends['uid']}">{$friends['name']}</a>
                                                        <php>}</php>
                                                </div>
                                        </neq>
                                        <neq name ="attach" value="">

                                                <div class="adjunct_list">
                                                        <h2>附件:</h2>
                                                        <volist name ="attach" id="vo"></volist>
                                                        <p class="cGray2"><a href="__TS__/Attach/index/id/{$vo['id']}/uid/{$uid}">{$vo['name']}</a></p>
                                                        </volist>
                                                </div>
                                        </neq>

                                        <neq name="mTime" value="0">
                                                <div class="cGray2 lh30">{%lastUpade}:{$mTime|friendlyDate}</div>
                                        </neq>


                                        <div class="cGray2 topline lh30">
                                                <span class="right wn">
                                                        <?php if( false == $recommend ){
                                                        $string = "推荐";
                                                        echo "<span id=\"re".$id."\"><a href=\"javascript:isHot(".$uid.",".$id.",'recommend')\">".$string."</a></span>(<span id=\"rec".$id."\">".$recommendCount."</span>)";
                                                        }else{
                                                        $string = "已推荐";
                                                        echo "<span class=\"cGray2\">".$string."(<span>".$recommendCount."</span>)</span>";
                                                        }?>
                                                        &nbsp;&nbsp;{:W('Report',array( 'type'=>'日志举报','appid'=>$APPINFO['APP_ID'],'url'=>'Index/show/id/'.$id.'/mid/'.$uid,'title'=>$title,'recordId'=>$id ))}</span>
                                                {%reader}({$readCount})&nbsp;&nbsp;|&nbsp;&nbsp;{%comment}(<span id='commentCount'>{$commentCount}</span>)
                                        </div>
                                </div>
                                {:W('Comment',array( 'type'=>'blog','appid'=>$id,'mid'=>$uid,"face"=>getUserFace( $guest ),'role'=>$role ))}
                                <php>}</php>
                        </div><!-- 好友{%blog} end  -->
                </div>
        </div><!-- 画布 end  -->
        <div class="c"></div>
</div><!-- 内容 end -->
<include    file="__THEME__/footer" />
